package com.example.framework;

import android.content.Context;

import com.example.framework.bmob.bmobManager.BmobManager;
import com.example.framework.utils.SpUtils;

/**
 * @author:0.2℃
 * @date： 2022-03-22 23:34
 * @Description ：Framework入口，使用单例模式创建
 */
public class Framework {
    private volatile static Framework mFramework;

    private Framework() {}

    public static Framework getFramework() {
        if (mFramework == null) {
            synchronized (Framework.class) {
                if (mFramework == null) {
                    mFramework = new Framework();
                }
            }
        }
        return mFramework;
    }

    public static void initFramework(Context mContext) {
        SpUtils.getInstance().initSp(mContext);
        BmobManager.getInstance().initBmob(mContext);
    }
}
